package com.baizhi.mapper;

import com.baizhi.entity.Book;
import com.baizhi.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    //添加
    public int insertCategory(@Param("c") Category category);
    //删除
    public int deleteCategory(int id);
    //分页
    public List<Category> selectCategorysByPage(@Param("offset")int offset, @Param("rows")int rows);
    //总数
    public int selectToalCount();
}
